#include"MyTask.h"
#include<thread>
#include<iostream>

MyTask::MyTask() {}
MyTask::~MyTask() {}

void MyTask::setdata(int d)
{
	data_ = d;
}
void MyTask::Run()
{
	std::cout << "I'm" << data_ << std::endl;
	std::this_thread::sleep_for(std::chrono::seconds(1));  
}